package com.kasinf.sample.log.config;

import com.kasinf.framework.cache.utils.RedisUtils;
import com.kasinf.framework.common.pojo.log.LogDTO;
import com.kasinf.framework.log.client.define.LogProcessor;
import org.springframework.stereotype.Component;

/**
 * @Author : Kaiser
 * @Date: 2025/7/1  17:33
 */
@Component
public class LogProcessImpl implements LogProcessor {
    @Override
    public void createLogAsync(LogDTO createDTO) {
        RedisUtils.publish("redis-log-message", createDTO);
    }
}
